package com.vogtec.fota.entity.mqtt;

/**
 * Created by TieYan on 2017/3/4.
 */
public class BikeReportVersionInvo extends BikeWireDown{
    private byte type = 18;
    private String bikeNum;

    public BikeReportVersionInvo(String bikeNum) {
        this.bikeNum = bikeNum;
    }

    @Override
    public byte[] encode() {
        byte[] bikeNumBytes = Util.string2AsciiArray(bikeNum);
        content = Util.add(type, bikeNumBytes);
        return content;
    }

    public static void main(String[] args){
        BikeReportVersionInvo bikeSMS = new BikeReportVersionInvo("12345678");
        bikeSMS.encode();
        for(byte b: bikeSMS.content){
            System.out.println(b);
        }
    }
}
